EXAMPLE SOURCE CODES


     This is a small collection of mostly game example source codes. These source codes are made available to help PlayBasic programmers kick start their game programming journey. Looking for more source code / tutorials & media, then remember to visit the PlayBasic Resource board on our forums.

Found #8 items in Alpha Blending category

 Twitch Face 2006

By: Kevin Picone Added: July 13th, 2020

Category: All,Sprite,effect,Alpha Blending


PlayBasic LIVE - Revisiting Twitch Face Demo - (2020-07-14 )

Here we're taking a look back a demo called Twitch Face from way back in February of 2006. The demo is various stacked blends that 'twitch' or are offset from each other.


Video:





Download:


Get Source Code





 Particles Using Sprites

By: Kevin Picone Added: May 6th, 2016

Category: All,Particles,Videos,Effects,Alpha Blending

Particles Demo Using Sprites

     This is an older code snippet that was originally written by Crystal Noir, it creates a type of 3D particle explosion using animated 2d sprites. I've tweaking the code and fixed some logic errors and this was the end result.

Particle Demo Video



Get Source Code




 Meta Balls - Light Blobs

By: Kevin Picone Added: April 22nd, 2016

Category: All,Demos,Videos,Effects,Alpha Blending

Meta Balls - Light Blobs

This example recreates a popular demo effect known as meta balls/blobs. The scene is calculated by working out the amount of energy that each pixel receives from the surround 'blobs' or lights. The more lights the more work each pixel has to be do.

So if you did all the work (calc the distance etc) in the inner most loops, you’d get a pretty heavy per pixel calculation. Such a loop would run slowly even in assembly/machine code. So what we need to do is come up with some ways we can simplify the inner loop to get the cost per pixel down as much as possible.

Video:



Related Links:

- Get Source Code
- A Crash Course In BASIC program Optimization





 Tree Parallax

By: Kevin Picone Added: June 19th, 2011

Category: All,Effects,Fonts,Alpha Blending


     This little demo builds old school parallax effect with a bunch of trees, the effect is not the interesting part really. It's that rather than use images/sprites the tree images are converted into a font (CRF), so the rows of trees are drawn as strings..
Download: Login to Download




 Particle Candle

By: Kevin Picone Added: March 21st, 2008

Category: All,Demo,Effect,Alpha Blending


This example manually plots some particles (sprites) to simulate a lit candle.
Download: Login to Download




 Thesius XIII - Forest Blast

By: Kevin Picone Added: May 6th, 2007

Category: All,Games, 2.5D, Demo,Alpha Blending,Effects


[INDENT]Thesius XIII is one of the more recent example games and is shipped as part of the PlayBasic package. The game is an unofficial follow up to a game I wrote on the Amiga called Thesius XII. [BR][BR]

Download: Login to Download




 Axis

By: Kevin Picone Added: April 20th, 2006

Category: All,Games,Alpha Blending ,Effects


    Axis is one of the example pack games, it's a sort cross between old school Space Invaders / Galaxian styled shoot'em ups.


Download: Login to Download




 Tracys Platform Blaster

By: Tracy Zundel Added: March 18th, 2006

Category: All,Platformer,Games,Demos,AI,Effects,Alpha Blending,Scrolling


    This is rather nice platform/shooter (with nice weapons + even roaming alien AI) written by a first time game programmer.

     The code was tested PlayBasic v1.62 / 1.63 (was originally written in PB1.33)

     This game example developed a few years ago now by an old member Tracy. Being his first game (his first program ever apparently) the game built from a combination of various tidbits that come with PlayBasic and lots of good old fashion fun and enthusiasm. Which has certainly transpired into a fun game demo.

       The interesting thing about this demo is that contains a bunch of sprite effects and as some really rather interesting weapons for the player.  You've no doubt seen the backdrop art before (the demo was originally built off the 2d platformer demo that comes with PlayBasic) , and most of the sprites are ripped unfortunately.  It's kind of bizarre as the player has different characters for different animations.   Walking is guy in a overcoat, flying it's a dragon.. 

     Anyway, Feel Free to be the next link in the chain and this code further !




Download: Login to Download




Viewing Page [1] of [1]



Want More Source Codes?:



Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.

 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]